package lib
import (
	"github.com/astaxie/beego/logs"
	"encoding/json"
)


var (

	log = logs.NewLogger(10000)
)

func InitLog()  {
	log.SetLogger("console", `{"level":1}`)
}
func LogJson(data interface{})  {
	out,_ := json.Marshal(data)
	log.Debug("cmd:%s",string(out))
}
